function onClickSumit(url,jum){
    var user = $('#input1').val();
    var pwd = $('#input2').val();
    $.ajax({
        url:url,
        type:'post',
        data:{
            user:user,
            pwd:pwd,
        },
        success:function(data){
            if(data.code==200){
                window.location.href=jum;
            }else{
                alert(data.msg);
            }
        }
    });
}